//
//  GeexRecorderNetAccessor.h
//  VideoRecordManager
//
//  Created by zhangbaochuan on 2020/2/27.
//  Copyright © 2020 WangYonghe. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFNetworking/AFNetworking.h>
#import <AFNetworking/AFNetworkActivityIndicatorManager.h>
#import <AFNetworking/AFNetworkReachabilityManager.h>

NS_ASSUME_NONNULL_BEGIN

//连接状态
typedef enum {
    ///返回数据正确
    Enum_SUCCESS = 0,
    ///返回数据出错
    Enum_FAIL = 1,
    ///连接不上服务器
    Enum_NOTCONNECTED = 2,
    ///超时连接
    Enum_CONNECTEDTIMEOUT = 3
} EnumServerStatus;

typedef void (^FinishedBlock)(EnumServerStatus status, id object);
typedef void (^ProgressBlock)(NSProgress *taskProgress);

@interface GeexRecorderNetAccessor : NSObject

+ (instancetype)sharedInstance;

- (void)sendVidioFormUrl:(NSString *)urlStr filedata:(NSData *)data parameters:(id)parameters process:(ProgressBlock)progress finished:(FinishedBlock)finished;
@end

NS_ASSUME_NONNULL_END
